import React from 'react';

function City(props) {
    let { city } = props

    return (
        <div className="city">
            <h4>热门城市</h4>
            <div className="city2">
                {city.map((item) => (
                    <span key={item.id}>{item.name}</span>
                ))}
            </div>
        </div>
    );
}

export default City;